package com.example.demo.Test;

import java.util.Random;

/**
 * 标准类库练习
 *
 * @author Create by 崔少良 2018-06-08 下午 1:20
 */
public class ClassLibrariesTest {
    public static void main(String[] args) {
        for (int i = 0; i < 9; i++) {
            getRandomNum(10);
        }
    }
    //随机数
    public static void getRandomNum(int n){
        Random r = new Random();
        int a = r.nextInt(n);
        System.out.println(a);
    }
}
